<?php

namespace app\index\controller;

use think\Controller;
use app\index\model\User;


class Index extends Controller
{
    public function index()
    {
        return $this->fetch();
    }

    public function info()
    {
        return $this->fetch();
    }

    public function test()
    {
        // $user = [
        //     'name' => 'jack',
        //     'password' => '123456'
        // ];

        // $admin = new User();
        // $result = $admin->save($user);
        // dump($result);

        // $user = User::get(7);
        // echo $user->status;
        // echo $user->status_txt;
    }
}
